<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title>添加{$name}</title>
    <hdjs />
    <js file= '__PUBLIC__/js/mod.base.js,__PUBLIC__/js/mod.user.js' />
    <css file= '__PUBLIC__/css/mod.base.css' />
</head>

<body>

    <form action="" method="post" class="hd-form" name="form" >
       
        <div class="hd-menu-list">
            <ul>
                <li >
                    <a href="{:U('User/index',array('role'=>$_GET['role']))}">{$name}列表</a>
                </li>
                <li class="active">
                    <a href="javascript:;">添加{$name}</a>
                </li>
            </ul>
        </div>
         <div class="hd-title-header">温馨提示</div>
        <div class="help">
            <ul>
                <li>
                  添加{$name}
                </li>
            </ul>
        </div>
        <div class="hd-title-header">添加{$name}</div>
        <div class="right_content">
            <table class="hd-table hd-table-form">
                <tbody>
                    <if condition='$_GET["role"] eq 2'>
                    <tr>
                        <th class="hd-w100">
                           {$name}等级
                        </th>
                        <td>
                            <select name="grade_gid">
                                <option value="0">请输入会员等级</option>
                                <volist name='grade' id='g'>
                                <option value="{$g.gid}">{$g.gname}</option>
                                </volist>
                            </select>
                        </td>
                    </tr>
                    <else />
                    <tr>
                        <th class="hd-w100">
                           {$name}分组
                        </th>
                        <td>
                            <table>
                                <tr>
                                <th class='hand' onclick='add_group(this)'>[+]</th>
                                <td>
                                    <select name="group_id[]">
                                       <volist name='authGroup' id='v'>
                                            <option value="{$v.id}" >{$v.title}</option> 
                                       </volist>
                                    </select>
                                </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    </if>
                    <tr>
                        <th class="hd-w100">
                            用户名
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="text" name="username" class="hd-w200"></td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            密码
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="password" name="password" class="hd-w200"></td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            确认密码
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="password" name="passwords" class="hd-w200"></td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            昵称
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="text" name="nickname" class="hd-w200"></td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            邮箱
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="text" name="email" class="hd-w200"></td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            状态
                            <span class="star">*</span>
                        </th>
                        <td>
	                        <label> <input type="radio" name="is_lock" value="1"> 锁定</label>&nbsp;&nbsp;
	                        <label> <input type="radio" name="is_lock" value="0" checked="checked"> 正常</label>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <input type="hidden" name="role" value="{$Think.get.role}" />
        <input type="submit" value="添加" class="hd-btn hd-btn-sm">
        <input type="button" value="返回" class="hd-btn hd-btn-sm" onclick="location.href='{:U('User/index',array('role'=>$_GET['role']))}'">
        </form>

</body>
</html>